<?php
namespace Product\Model;

class Home 
{
    public $id;
    public $name;
    public $quantity;
	public $firstname;
    public $lastname;
    //public $owner;
	

    public function exchangeArray($data)
    {
        $this->id = (isset($data['id'])) ? $data['id'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->firstname = (isset($data['firstname'])) ? $data['firstname'] : null;
        $this->lastname = (isset($data['lastname'])) ? $data['lastname'] : null;
        $this->quantity  = (isset($data['quantity'])) ? $data['quantity'] : null;
        //$this->owner  = (isset($data['owner'])) ? $data['owner'] : null;        
    }
	
	public function __construct(array $options = null) {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
        
    
}